<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .arrow {
      position: relative;
      left: 50%;
      width: 0;
      height: 0;
      border: 40px solid black;
      border-left-color: transparent;
      border-right-color: transparent;
      border-top-color: transparent;
      transform-origin: center 60px;
    }
    .active {
      animation: run 1s forwards;
    }
    @keyframes run {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(180deg);
      }
    }
  </style>
  <script>
    var arrow = document.getElementsByClassName('arrow')[0];
  </script>
  <body>
    <div class="arrow"></div>
  </body>
</html>
